import axios from '@/utils/request'

export function getList(params) {
  return axios.get('/admin_api/v1/main_station/news/', {
    params
  })
}

export function getDetail(uuid) {
  return axios.get(`/admin_api/v1/main_station/news/${uuid}/`)
}

export function add(data) {
  return axios.post('/admin_api/v1/main_station/news/', data)
}

export function edit(uuid, data) {
  return axios.put(`/admin_api/v1/main_station/news/${uuid}/`, data)
}

export function del(uuid) {
  return axios.delete(`/admin_api/v1/main_station/news/${uuid}/`)
}
